package cn.sanch.org.mapper;

import cn.sanch.basic.mapper.BaseMapper;
import cn.sanch.org.domain.Shop;
import cn.sanch.org.dto.ShopDto;
import cn.sanch.org.query.ShopQuery;

import java.util.List;

/**
 * @author sanch37
 * 2022/5/23
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 检验店铺信息是否已经入驻过：店铺名+电话+地址
     * @param shop
     * @return
     */
    Shop loadByMessage(Shop shop);

    /**
     * 获取店铺每一种状态的数量
     * @return
     */
    List<ShopDto> getShopStates();
}
